package mybatisPuls_test;/*
 * Created by zgh on 2019/8/22
 * */

import com.yunding.App;
import com.yunding.house.mapper.AgentMapper;

import com.yunding.house.mapper.StaffMapper;
import com.yunding.house.pojo.Staff;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

@RunWith(SpringRunner.class)
@SpringBootTest(classes = App.class)
public class st {
    @Autowired
    private StaffMapper staffMapper;
        @Test
    public  void  aVoid(){
           List<Staff> lsi=staffMapper.selectList(null);
           for(Staff staff:lsi){
               System.out.println(staff);
           }
        }


}


